import request from "@/utils/request";
// 获取面经列表
export const getMjData = params => {
  return request.get("/admin/interview/query", { params })
};

// 获取单个面经详情
export const getMjDetail = (params) => {
  return request.get("/admin/interview/show", {params})
};

// 更新面经数据
export const updateMjData = (data) => {
  return request.put("/admin/interview/update", data)
};

// 创建面经
export const createMjData = (data) => {
  return request.post("/admin/interview/create", data)
};

// 删除面经 由于使用的是body 参数，这里套两层
export const deleteMjData = (id) => {
  return request.delete("/admin/interview/remove", {
    data: {
    id
  }
} )
};
